package com.zxh.dao;

import com.zxh.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    List<User> getUserList();

    User getUserByLogin(@Param("userCode") String userCode, @Param("userPassword") String userPassword);

    int getUserCountByParams(@Param("userName") String userName, @Param("userRole") Integer userRole);

    List<User> getUserListByParams(Map<String, Object> params);

    int addUser(User user);

    User getUserById(Integer id);

    int delUserById(Integer id);

    int getUserCountByCode(String usercode);

    int checkUserCodeOfId(@Param("usercode")String usercode,@Param("id") Integer id);

    int updateUser(User user);
}
